import { state } from "../config.js";
//幕布
var mask = document.querySelector(".mask");
//#region 幕布设置
export function closeMask() {
    mask.style.display = "none";
    mask.innerHTML = "";
    state.stop = false;
}
export function openMask() {
    mask.style.display = "flex";
    state.stop = true;
}
export function setMaskContent(str) {
    mask.innerHTML = str;
}
mask.onclick = function (_a) {
    var target = _a.target;
    return target === mask && closeMask();
};
//#endregion
